# name : lag except first
# key : lag.first
# contributor: Shuguang Sun
# --
by ${3:usubjid};
${1:lagv} = lag(${2:var});
if first.${3:usubjid} then $1 = .;